package com.zhz.lib.project.domain.news;

import java.util.Date;

/**
 * News entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class News implements java.io.Serializable {

    // Fields

    /**
     * 
     */
    private static final long serialVersionUID = -174916960022615038L;
    private Integer           newsId;
    private String            title;
    private String            content;
    private String            editor;
    private String            writer;
    private String            newsfrom;
    private String            keyword;
    private Integer           aproveState;
    private Date              aproveTime;
    private String            sortType;
    private Date              pubDate;
    private Integer           top;
    private Date              topStartTime;
    private Date              topEndTime;
    private Integer           hit;
    private Integer           ifDelete;

    // Constructors

    /** default constructor */
    public News() {
    }

    /** minimal constructor */
    public News(Integer top) {
        this.top = top;
    }

    /** full constructor */
    public News(String title, String content, String editor, String writer, String newsfrom,
                String keyword, Integer aproveState, String sortType, Date pubDate, Integer top,
                Date topStartTime, Date topEndTime, Integer hit, Integer ifDelete) {
        this.title = title;
        this.content = content;
        this.editor = editor;
        this.writer = writer;
        this.newsfrom = newsfrom;
        this.keyword = keyword;
        this.aproveState = aproveState;
        this.sortType = sortType;
        this.pubDate = pubDate;
        this.top = top;
        this.topStartTime = topStartTime;
        this.topEndTime = topEndTime;
        this.hit = hit;
        this.ifDelete = ifDelete;
    }

    // Property accessors

    public Integer getNewsId() {
        return this.newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEditor() {
        return this.editor;
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public String getWriter() {
        return this.writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public String getKeyword() {
        return this.keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getAproveState() {
        return this.aproveState;
    }

    public void setAproveState(Integer aproveState) {
        this.aproveState = aproveState;
    }

    public String getSortType() {
        return this.sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public Date getPubDate() {
        return this.pubDate;
    }

    public void setPubDate(Date pubDate) {
        this.pubDate = pubDate;
    }

    public Integer getTop() {
        return this.top;
    }

    public void setTop(Integer top) {
        this.top = top;
    }

    public Date getTopStartTime() {
        return this.topStartTime;
    }

    public void setTopStartTime(Date topStartTime) {
        this.topStartTime = topStartTime;
    }

    public Date getTopEndTime() {
        return this.topEndTime;
    }

    public void setTopEndTime(Date topEndTime) {
        this.topEndTime = topEndTime;
    }

    public Integer getHit() {
        return this.hit;
    }

    public void setHit(Integer hit) {
        this.hit = hit;
    }

    public String getNewsfrom() {
        return newsfrom;
    }

    public void setNewsfrom(String newsfrom) {
        this.newsfrom = newsfrom;
    }

    public Integer getIfDelete() {
        return ifDelete;
    }

    public void setIfDelete(Integer ifDelete) {
        this.ifDelete = ifDelete;
    }

    public Date getAproveTime() {
        return aproveTime;
    }

    public void setAproveTime(Date aproveTime) {
        this.aproveTime = aproveTime;
    }

}